package com.salt.patterns.abstractfactory;

/**
 * 创建工厂
 *
 * @author KuangHaiBo
 * @date 2021/4/11 19:46
 */
public class CrateFactory {
    public AbstractNoticeFactory create(String mark) {
        switch (mark) {
            case "wechat":
                return new WeChatMsgFactory();
            default:
                return null;
        }
    }
}
